/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.istia.gesstages.dao;

import fr.istia.gesstages.jpa.User;
import fr.istia.gesstages.jpa.UserType;
import java.util.List;

/**
 * @date 22/11/2011
 * @author Cédric Moreau
 */
public interface IDaoUser extends IDaoEntity {
    
    public User create(User user);
    public User update(User user);
    public void delete(User user);
    public User find(int id);
    public User findByLogin(String login);
    public List<User> findAll();
    public List<User> findByType(UserType type);
    public List<User> findArchived(String year);
    public void archiveAll();
    public void deleteAll();
}
